package com.szd.entity;
/*
*
*
* */

public class Result <T>{
    private String msg;
    private Boolean success;
    private T date;
    private T data;

    public Result() {
    }

    public Result(String msg, Boolean success, T date) {
        this.msg = msg;
        this.success = success;
        this.date = date;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public T getDate() {
        return date;
    }

    public void setDate(T date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Result{" +
                "msg='" + msg + '\'' +
                ", success=" + success +
                ", date=" + date +
                '}';
    }


    public void setData(T data) {
        this.data = data;
    }

    public T getData() {
        return data;
    }
}
